home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5428 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  43 lines

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borland C - compiler not finding window.h file.
  5. Date: Fri, 09 Feb 96 15:36:38 GMT
  6. Organization: none
  7. Message-ID: <823880198snz@genesis.demon.co.uk>
  8. References: <4f85f9$4i8@guitar.sound.net> <311AAC3C.3DB@ix.netcom.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <311AAC3C.3DB@ix.netcom.com>
  15.            nbullen@ix.netcom.com "Norman Bullen" writes:
  16.  
  17. >Do you have <...> or "..." surrounding the include file name? <...> will 
  18. >find the file in any of the directories specified in the IDE for include 
  19. >files; "..." will only find the file in the current directory or a fully 
  20. >qualified directory.
  21.  
  22. Not if it is an ANSI comforming implementation.  What:
  23.  
  24. #include "stdio.h"
  25.  
  26. will search is implementation defined (but it will often include the
  27. curent directory). However if that search fails to find anything it will
  28. proceed to perform the same search as:
  29.  
  30. #include <stdio.h>
  31.  
  32. so if the <> form finds something then the "" form is guaranteed to find
  33. something as well (although not necessarily the same thing). Nevertheless
  34. <> should be used for standard/system header files to prevent the system
  35. finding the wrong file (e.g. if there happens to be a file called
  36. stdio.h in the current directory).
  37.  
  38. -- 
  39. -----------------------------------------
  40. Lawrence Kirby | fred@genesis.demon.co.uk
  41. Wilts, England | 70734.126@compuserve.com
  42. -----------------------------------------
  43.